package interview.t0.mianshi.test;

import org.junit.Test;

import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

public class T15_MyThreadPool {

    @Test
    public void cpu() {
        System.out.println("cpu核数：" + Runtime.getRuntime().availableProcessors());
    }

    @Test
    public void t1() {

        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
                2,
                5,
                1,
                TimeUnit.SECONDS,
                new LinkedBlockingQueue<>(3),
                Executors.defaultThreadFactory(),
                //new ThreadPoolExecutor.AbortPolicy()//超出抱异常java.util.concurrent.RejectedExecutionException:
                new ThreadPoolExecutor.CallerRunsPolicy()// 回退给调用者
        );
        AtomicInteger cou = new AtomicInteger();
        //最大并发量----maximumPoolSize+等待队列数？？？java8是怎么处理的--
        for (int i = 0; i < 23; i++) {
            threadPoolExecutor.execute(() -> {
                System.out.println(Thread.currentThread().getName() + "   -=-=-=-=-=-");
                cou.getAndIncrement();
            });
        }

        System.out.println(cou.get());

        //                    new ThreadPoolExecutor.CallerRunsPolicy()// 回退给调用者
        //    /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:/Users/xxm/develop/idea/IntelliJ IDEA/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=54134:/Users/xxm/develop/idea/IntelliJ IDEA/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Users/xxm/develop/idea/IntelliJ IDEA/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Users/xxm/develop/idea/IntelliJ IDEA/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/xxm/develop/idea/IntelliJ IDEA/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit5-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/tools.jar:/Users/xxm/develop/workspace/learn/target/test-classes:/Users/xxm/develop/workspace/learn/target/classes:/Users/xxm/develop/maven/repository/org/springframework/spring-webmvc/4.3.7.RELEASE/spring-webmvc-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-aop/4.3.7.RELEASE/spring-aop-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-core/4.3.7.RELEASE/spring-core-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-expression/4.3.7.RELEASE/spring-expression-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-web/4.3.7.RELEASE/spring-web-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-context/4.3.7.RELEASE/spring-context-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-context-support/4.3.7.RELEASE/spring-context-support-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-beans/4.3.7.RELEASE/spring-beans-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-jdbc/4.3.7.RELEASE/spring-jdbc-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-aspects/4.3.7.RELEASE/spring-aspects-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/aspectj/aspectjweaver/1.8.9/aspectjweaver-1.8.9.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-tx/4.3.7.RELEASE/spring-tx-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-test/4.3.7.RELEASE/spring-test-4.3.7.RELEASE.jar:/Users/xxm/develop/maven/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/Users/xxm/develop/maven/repository/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar:/Users/xxm/develop/maven/repository/javax/servlet/jstl/1.2/jstl-1.2.jar:/Users/xxm/develop/maven/repository/org/mybatis/mybatis/3.4.4/mybatis-3.4.4.jar:/Users/xxm/develop/maven/repository/org/mybatis/mybatis-spring/1.3.0/mybatis-spring-1.3.0.jar:/Users/xxm/develop/maven/repository/com/github/pagehelper/pagehelper/3.7.5/pagehelper-3.7.5.jar:/Users/xxm/develop/maven/repository/com/github/jsqlparser/jsqlparser/0.9.1/jsqlparser-0.9.1.jar:/Users/xxm/develop/maven/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar:/Users/xxm/develop/maven/repository/com/alibaba/druid/1.0.4/druid-1.0.4.jar:/Users/xxm/develop/maven/repository/org/quartz-scheduler/quartz/2.3.0/quartz-2.3.0.jar:/Users/xxm/develop/maven/repository/com/mchange/c3p0/0.9.5.2/c3p0-0.9.5.2.jar:/Users/xxm/develop/maven/repository/com/mchange/mchange-commons-java/0.2.11/mchange-commons-java-0.2.11.jar:/Users/xxm/develop/maven/repository/com/zaxxer/HikariCP-java6/2.3.13/HikariCP-java6-2.3.13.jar:/Users/xxm/develop/maven/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar:/Users/xxm/develop/maven/repository/org/apache/httpcomponents/httpclient/4.3.5/httpclient-4.3.5.jar:/Users/xxm/develop/maven/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/Users/xxm/develop/maven/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/xxm/develop/maven/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/xxm/develop/maven/repository/org/apache/httpcomponents/httpmime/4.3.1/httpmime-4.3.1.jar:/Users/xxm/develop/maven/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/core/jackson-core/2.8.5/jackson-core-2.8.5.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/core/jackson-databind/2.8.5/jackson-databind-2.8.5.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar:/Users/xxm/develop/maven/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/xxm/develop/maven/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/xxm/develop/maven/repository/com/esotericsoftware/kryo/3.0.3/kryo-3.0.3.jar:/Users/xxm/develop/maven/repository/com/esotericsoftware/reflectasm/1.10.1/reflectasm-1.10.1.jar:/Users/xxm/develop/maven/repository/com/esotericsoftware/minlog/1.3.0/minlog-1.3.0.jar:/Users/xxm/develop/maven/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar:/Users/xxm/develop/maven/repository/redis/clients/jedis/2.9.0/jedis-2.9.0.jar:/Users/xxm/develop/maven/repository/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar:/Users/xxm/develop/maven/repository/org/springframework/data/spring-data-redis/1.7.2.RELEASE/spring-data-redis-1.7.2.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/data/spring-data-keyvalue/1.1.2.RELEASE/spring-data-keyvalue-1.1.2.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-oxm/4.2.6.RELEASE/spring-oxm-4.2.6.RELEASE.jar:/Users/xxm/develop/maven/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar:/Users/xxm/develop/maven/repository/org/slf4j/slf4j-nop/1.7.2/slf4j-nop-1.7.2.jar:/Users/xxm/develop/maven/repository/junit/junit/4.12/junit-4.12.jar:/Users/xxm/develop/maven/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/xxm/develop/maven/repository/org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar:/Users/xxm/develop/maven/repository/org/apache/shiro/shiro-core/1.3.1/shiro-core-1.3.1.jar:/Users/xxm/develop/maven/repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar:/Users/xxm/develop/maven/repository/org/apache/shiro/shiro-web/1.3.1/shiro-web-1.3.1.jar:/Users/xxm/develop/maven/repository/org/apache/shiro/shiro-ehcache/1.3.1/shiro-ehcache-1.3.1.jar:/Users/xxm/develop/maven/repository/org/apache/shiro/shiro-spring/1.3.1/shiro-spring-1.3.1.jar:/Users/xxm/develop/maven/repository/net/sf/ehcache/ehcache-core/2.6.11/ehcache-core-2.6.11.jar:/Users/xxm/develop/maven/repository/org/mybatis/generator/mybatis-generator-core/1.3.7/mybatis-generator-core-1.3.7.jar:/Users/xxm/develop/maven/repository/com/alibaba/easyexcel/1.1.1/easyexcel-1.1.1.jar:/Users/xxm/develop/maven/repository/org/apache/poi/poi/3.17/poi-3.17.jar:/Users/xxm/develop/maven/repository/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar:/Users/xxm/develop/maven/repository/org/apache/poi/poi-ooxml/3.17/poi-ooxml-3.17.jar:/Users/xxm/develop/maven/repository/org/apache/poi/poi-ooxml-schemas/3.17/poi-ooxml-schemas-3.17.jar:/Users/xxm/develop/maven/repository/org/apache/xmlbeans/xmlbeans/2.6.0/xmlbeans-2.6.0.jar:/Users/xxm/develop/maven/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/xxm/develop/maven/repository/com/github/virtuald/curvesapi/1.04/curvesapi-1.04.jar:/Users/xxm/develop/maven/repository/org/apache/commons/commons-compress/1.14/commons-compress-1.14.jar:/Users/xxm/develop/maven/repository/commons-net/commons-net/3.6/commons-net-3.6.jar:/Users/xxm/develop/maven/repository/org/csource/fastdfs/fastdfs/1.2/fastdfs-1.2.jar:/Users/xxm/develop/maven/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/xxm/develop/maven/repository/org/mongodb/mongo-java-driver/3.9.1/mongo-java-driver-3.9.1.jar:/Users/xxm/develop/maven/repository/org/projectlombok/lombok/1.16.16/lombok-1.16.16.jar:/Users/xxm/develop/maven/repository/org/freemarker/freemarker/2.3.23/freemarker-2.3.23.jar:/Users/xxm/develop/maven/repository/net/mingsoft/shiro-freemarker-tags/0.1/shiro-freemarker-tags-0.1.jar:/Users/xxm/develop/maven/repository/com/google/zxing/javase/3.1.0/javase-3.1.0.jar:/Users/xxm/develop/maven/repository/com/google/zxing/core/3.1.0/core-3.1.0.jar:/Users/xxm/develop/maven/repository/org/springframework/integration/spring-integration-mail/4.0.5.RELEASE/spring-integration-mail-4.0.5.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/integration/spring-integration-core/4.0.5.RELEASE/spring-integration-core-4.0.5.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/retry/spring-retry/1.1.1.RELEASE/spring-retry-1.1.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-messaging/4.0.7.RELEASE/spring-messaging-4.0.7.RELEASE.jar:/Users/xxm/develop/maven/repository/net/sourceforge/jexcelapi/jxl/2.6.12/jxl-2.6.12.jar:/Users/xxm/develop/maven/repository/com/alibaba/fastjson/1.2.6/fastjson-1.2.6.jar:/Users/xxm/develop/maven/repository/com/sun/mail/javax.mail/1.4.5/javax.mail-1.4.5.jar:/Users/xxm/develop/maven/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/xxm/develop/maven/repository/com/mortennobel/java-image-scaling/0.8.6/java-image-scaling-0.8.6.jar:/Users/xxm/develop/maven/repository/com/jhlabs/filters/2.0.235/filters-2.0.235.jar:/Users/xxm/develop/maven/repository/org/apache/shiro/shiro-all/1.2.4/shiro-all-1.2.4.jar:/Users/xxm/develop/maven/repository/org/apache/shiro/shiro-guice/1.2.4/shiro-guice-1.2.4.jar:/Users/xxm/develop/maven/repository/com/google/inject/guice/3.0/guice-3.0.jar:/Users/xxm/develop/maven/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/xxm/develop/maven/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/xxm/develop/maven/repository/com/google/inject/extensions/guice-multibindings/3.0/guice-multibindings-3.0.jar:/Users/xxm/develop/maven/repository/org/activiti/activiti-engine/5.21.0/activiti-engine-5.21.0.jar:/Users/xxm/develop/maven/repository/org/activiti/activiti-bpmn-converter/5.21.0/activiti-bpmn-converter-5.21.0.jar:/Users/xxm/develop/maven/repository/org/activiti/activiti-bpmn-model/5.21.0/activiti-bpmn-model-5.21.0.jar:/Users/xxm/develop/maven/repository/org/activiti/activiti-process-validation/5.21.0/activiti-process-validation-5.21.0.jar:/Users/xxm/develop/maven/repository/org/activiti/activiti-image-generator/5.21.0/activiti-image-generator-5.21.0.jar:/Users/xxm/develop/maven/repository/org/apache/commons/commons-email/1.4/commons-email-1.4.jar:/Users/xxm/develop/maven/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/Users/xxm/develop/maven/repository/joda-time/joda-time/2.6/joda-time-2.6.jar:/Users/xxm/develop/maven/repository/org/activiti/activiti-spring/5.21.0/activiti-spring-5.21.0.jar:/Users/xxm/develop/maven/repository/org/springframework/spring-orm/4.1.5.RELEASE/spring-orm-4.1.5.RELEASE.jar:/Users/xxm/develop/maven/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar:/Users/xxm/develop/maven/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/Users/xxm/develop/maven/repository/org/apache/activemq/activemq-all/5.15.9/activemq-all-5.15.9.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.jms/3.2.1.RELEASE/org.springframework.jms-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.aop/3.2.1.RELEASE/org.springframework.aop-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.beans/3.2.1.RELEASE/org.springframework.beans-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.context/3.2.1.RELEASE/org.springframework.context-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.core/3.2.1.RELEASE/org.springframework.core-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.transaction/3.2.1.RELEASE/org.springframework.transaction-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/org.springframework.oxm/3.2.1.RELEASE/org.springframework.oxm-3.2.1.RELEASE.jar:/Users/xxm/develop/maven/repository/org/codehaus/jackson/com.springsource.org.codehaus.jackson.mapper/1.4.2/com.springsource.org.codehaus.jackson.mapper-1.4.2.jar:/Users/xxm/develop/maven/repository/org/codehaus/jackson/com.springsource.org.codehaus.jackson/1.4.2/com.springsource.org.codehaus.jackson-1.4.2.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/core/com.springsource.com.fasterxml.jackson.core.jackson-core/2.0.2/com.springsource.com.fasterxml.jackson.core.jackson-core-2.0.2.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/elasticsearch/2.4.0/elasticsearch-2.4.0.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-core/5.5.2/lucene-core-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-backward-codecs/5.5.2/lucene-backward-codecs-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-analyzers-common/5.5.2/lucene-analyzers-common-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-queries/5.5.2/lucene-queries-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-memory/5.5.2/lucene-memory-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-highlighter/5.5.2/lucene-highlighter-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-queryparser/5.5.2/lucene-queryparser-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-sandbox/5.5.2/lucene-sandbox-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-suggest/5.5.2/lucene-suggest-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-misc/5.5.2/lucene-misc-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-join/5.5.2/lucene-join-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-grouping/5.5.2/lucene-grouping-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-spatial/5.5.2/lucene-spatial-5.5.2.jar:/Users/xxm/develop/maven/repository/org/apache/lucene/lucene-spatial3d/5.5.2/lucene-spatial3d-5.5.2.jar:/Users/xxm/develop/maven/repository/com/spatial4j/spatial4j/0.5/spatial4j-0.5.jar:/Users/xxm/develop/maven/repository/com/google/guava/guava/18.0/guava-18.0.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/securesm/1.0/securesm-1.0.jar:/Users/xxm/develop/maven/repository/com/carrotsearch/hppc/0.7.1/hppc-0.7.1.jar:/Users/xxm/develop/maven/repository/org/joda/joda-convert/1.2/joda-convert-1.2.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.8.1/jackson-dataformat-smile-2.8.1.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.8.1/jackson-dataformat-yaml-2.8.1.jar:/Users/xxm/develop/maven/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.8.1/jackson-dataformat-cbor-2.8.1.jar:/Users/xxm/develop/maven/repository/org/yaml/snakeyaml/1.15/snakeyaml-1.15.jar:/Users/xxm/develop/maven/repository/io/netty/netty/3.10.6.Final/netty-3.10.6.Final.jar:/Users/xxm/develop/maven/repository/com/ning/compress-lzf/1.0.2/compress-lzf-1.0.2.jar:/Users/xxm/develop/maven/repository/com/tdunning/t-digest/3.0/t-digest-3.0.jar:/Users/xxm/develop/maven/repository/org/hdrhistogram/HdrHistogram/2.1.6/HdrHistogram-2.1.6.jar:/Users/xxm/develop/maven/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/Users/xxm/develop/maven/repository/com/twitter/jsr166e/1.1.0/jsr166e-1.1.0.jar:/Users/xxm/develop/maven/repository/org/springframework/data/spring-data-elasticsearch/2.0.4.RELEASE/spring-data-elasticsearch-2.0.4.RELEASE.jar:/Users/xxm/develop/maven/repository/org/springframework/data/spring-data-commons/1.12.4.RELEASE/spring-data-commons-1.12.4.RELEASE.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/client/transport/5.6.10/transport-5.6.10.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/plugin/transport-netty3-client/5.6.10/transport-netty3-client-5.6.10.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/plugin/reindex-client/5.6.10/reindex-client-5.6.10.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/client/elasticsearch-rest-client/5.6.10/elasticsearch-rest-client-5.6.10.jar:/Users/xxm/develop/maven/repository/org/apache/httpcomponents/httpasyncclient/4.1.2/httpasyncclient-4.1.2.jar:/Users/xxm/develop/maven/repository/org/apache/httpcomponents/httpcore-nio/4.4.5/httpcore-nio-4.4.5.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/plugin/lang-mustache-client/5.6.10/lang-mustache-client-5.6.10.jar:/Users/xxm/develop/maven/repository/com/github/spullara/mustache/java/compiler/0.9.3/compiler-0.9.3.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/plugin/percolator-client/5.6.10/percolator-client-5.6.10.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/plugin/parent-join-client/5.6.10/parent-join-client-5.6.10.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/plugin/transport-netty4-client/5.6.10/transport-netty4-client-5.6.10.jar:/Users/xxm/develop/maven/repository/io/netty/netty-buffer/4.1.13.Final/netty-buffer-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/io/netty/netty-codec/4.1.13.Final/netty-codec-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/io/netty/netty-codec-http/4.1.13.Final/netty-codec-http-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/io/netty/netty-common/4.1.13.Final/netty-common-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/io/netty/netty-handler/4.1.13.Final/netty-handler-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/io/netty/netty-resolver/4.1.13.Final/netty-resolver-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/io/netty/netty-transport/4.1.13.Final/netty-transport-4.1.13.Final.jar:/Users/xxm/develop/maven/repository/org/locationtech/spatial4j/spatial4j/0.6/spatial4j-0.6.jar:/Users/xxm/develop/maven/repository/com/vividsolutions/jts/1.13/jts-1.13.jar:/Users/xxm/develop/maven/repository/org/apache/logging/log4j/log4j-api/2.9.1/log4j-api-2.9.1.jar:/Users/xxm/develop/maven/repository/org/apache/logging/log4j/log4j-core/2.9.1/log4j-core-2.9.1.jar:/Users/xxm/develop/maven/repository/org/elasticsearch/jna/4.4.0-1/jna-4.4.0-1.jar:/Users/xxm/develop/maven/repository/io/netty/netty-all/4.1.16.Final/netty-all-4.1.16.Final.jar:/Users/xxm/develop/maven/repository/org/ow2/asm/asm/7.1/asm-7.1.jar:/Users/xxm/develop/maven/repository/tk/mybatis/mapper/4.1.2/mapper-4.1.2.jar:/Users/xxm/develop/maven/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar" com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 interview.t0.mianshi.test.T15_MyThreadPool,t1
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-3   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-4   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-4   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-3   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-2   -=-=-=-=-=-
        //pool-1-thread-5   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //pool-1-thread-1   -=-=-=-=-=-
        //22--------------------------------- 回退给调用者 22 是@Test对应的线程-后面是此线程执行的结果-线程名称不明所以
        //pool-1-thread-4   -=-=-=-=-=-
        //
        //Process finished with exit code 0


    }
}
